@extends('layouts.app')
@section('header')
     @include('common.header')
@stop
@section('title', $category->seo_title)
@section('content')
<div class="banner1"></div>
<div class="xtxx">
            <div class="xtxx_top">
                <div class="xtxx_tit"><p><a href="/data?catid=32">数据服务</a>&nbsp;&gt;&nbsp;<a href="{{url($category->controller.'?catid='.$category->id)}}"">{{$category->name}}</a></p></div>
            </div>
            <div class="sjfw">
        <div class="sjfw_tit"><h2>在线留言</h2></div>
        <div class="zxlynr">
            <ul>
            <form id="form1" method="POST" action="/user/facebook">
     {{ csrf_field() }}
                <li><span class="kddy">姓名</span><input class="wby1" id="name" name="name" value="{{ old('name') }}" type="text"></li>
                <li><span class="kddy">公司</span><input class="wby1" id="company" name="company" value="{{ old('company') }}" type="text"></li>
                <li><span class="kddy">电话</span><input class="wby1" id="mobile" name="mobile" value="{{ old('mobile') }}" type="text"></li>
                <li><span class="kddy">邮箱</span><input class="wby1" id="email" name="email" value="{{ old('email') }}" type="text"></li>
                <li><span class="kddy">留言</span><textarea class="wby5" cols="" id="content" name="content" rows="">{{ old('content') }}</textarea></li>
                <li><span class="kddy" style="float: left;">验证码</span>
                	<input class="wby3" id="inputCode" name="code" style="float:left;" type="text">
                    <div class="code" id="checkCode" onclick="createCode()">{!!captcha_img()!!}</div>
                </li>
                <li><a class="hyz" href="javascript:;" onclick="createCode()">看不清换一张</a></li>
                <li><span class="kddy">&nbsp;</span><input class="btn8" name="" type="reset" value="重置">
                    <input class="btn8" name="sub" type="submit" value="提交">
                </li>
                </form>
            </ul>
        </div>
    </div>
        </div>
<script type="text/javascript">
function createCode()
{
	$('#checkCode img').attr('src', '/captcha?r='+Math.random());
}
</script>
<script type="text/javascript">
$(function(){
	@if(session('status'))
		layer.msg("{{session('status')}}");
	@endif
})
</script>
@endsection
@section('footer')
     @include('common.footer')
@stop